package org.aokey.springtext;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.bind.annotation.RestController;
@RequestMapping("url")
@RestController
public class UserController {
    @RequestMapping(value = "demo1", method = RequestMethod.GET)
    public String demo1(){
        return "路径测试！！！";
    }
    @RequestMapping(value = "demo2", method = RequestMethod.POST)
    public String demo2(){
        return "路径测试！！！";
    }
    @RequestMapping("demo3")
    public String demo3(String string){
        return "接收到参数： "+string;
    }
}
